export const routes = [
  {
    path: '/user',
    component: '../layouts/BlankLayout', //指定以下页面的布局
    routes: [
      {
        path: '/user/token',
        component: './user/token',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/seller',
    component: '../layouts/SecurityLayout', //指定以下页面的布局
    routes: [
      {
        path: '/seller',
        component: '../layouts/BasicLayout', //指定以下页面的布局
        routes: [
          {
            path: '/seller',
            component: './seller/layout', //指定以下页面的布局
            routes: [
              {
                path: '/seller',
                component: './seller/welcome',
              },
              {
                path: '/seller/order',
                component: './seller/order/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/seller/order',
                    component: './seller/order/tobedetermined',
                  },
                  {
                    path: '/seller/order/tobedetermined',
                    component: './seller/order/tobedetermined',
                  },
                  {
                    path: '/seller/order/tobereceived',
                    component: './seller/order/tobereceived',
                  },
                  {
                    path: '/seller/order/tobeshipped',
                    component: './seller/order/tobeshipped',
                  },
                  {
                    path: '/seller/order/received',
                    component: './seller/order/received',
                  },
                ],
              },
              {
                path: '/seller/goods',
                component: './seller/goods/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/seller/goods',
                    component: './seller/goods/data',
                  },
                ],
              },
              {
                path: '/seller/finance',
                component: './seller/finance/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/seller/finance',
                    component: './seller/finance/data',
                  },
                ],
              },
              {
                path: '/seller/msg',
                component: './seller/msg/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/seller/msg',
                    component: './seller/msg/unread',
                  },
                  {
                    path: '/seller/msg/unread',
                    component: './seller/msg/unread',
                  },
                  {
                    path: '/seller/msg/read',
                    component: './seller/msg/read',
                  },
                ],
              },
              {
                path: '/seller/apply',
                component: './seller/apply/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/seller/apply',
                    component: './seller/apply/data',
                  },
                  {
                    path: '/seller/apply/fail',
                    component: './seller/apply/fail',
                  },
                  {
                    path: '/seller/apply/success',
                    component: './seller/apply/success',
                  },
                ],
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    path: '/buyer',
    component: '../layouts/SecurityLayout', //指定以下页面的布局
    routes: [
      {
        path: '/buyer',
        component: '../layouts/BasicLayout',
        routes: [
          {
            path: '/buyer',
            component: './buyer/welcome',
          },
          {
            path: '/buyer/material',
            routes: [
              {
                path: '/buyer/material/goods/',
                routes: [
                  {
                    path: '/buyer/material/goods/data',
                    component: './buyer/material/goods/data',
                  },
                  {
                    path: '/buyer/material/goods/store',
                    routes: [
                      {
                        path: '/buyer/material/goods/store',
                        component: './buyer/material/goods/store/data',
                      },
                      {
                        path: '/buyer/material/goods/store/goods',
                        component: './buyer/material/goods/store/goods',
                      },
                      {
                        component: './404',
                      },
                    ],
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/material/cart/',
                routes: [
                  {
                    path: '/buyer/material/cart/data',
                    component: './buyer/material/cart/data',
                  },
                  {
                    path: '/buyer/material/cart/settle',
                    component: './buyer/material/cart/settle',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/material/order/',
                component: './buyer/material/order/layout',
                routes: [
                  {
                    path: '/buyer/material/order/nocommit',
                    component: './buyer/material/order/nocommit',
                  },
                  {
                    path: '/buyer/material/order/checking',
                    component: './buyer/material/order/checking',
                  },
                  {
                    path: '/buyer/material/order/noship',
                    component: './buyer/material/order/noship',
                  },
                  {
                    path: '/buyer/material/order/noreceive',
                    component: './buyer/material/order/noreceive',
                  },
                  {
                    path: '/buyer/material/order/havestore',
                    component: './buyer/material/order/havestore',
                  },
                  {
                    path: '/buyer/material/order/cancel',
                    component: './buyer/material/order/cancel',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/material/favorite/',
                component: './buyer/material/favorite/layout',
                routes: [
                  {
                    path: '/buyer/material/favorite/data',
                    component: './buyer/material/favorite/data',
                  },
                  {
                    path: '/buyer/material/favorite/store',
                    component: './buyer/material/favorite/store',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/buyer/lab/list',
            component: './buyer/lab/list/layout', //指定以下页面的布局
            routes: [
              {
                path: '/buyer/lab/list/data',
                component: './buyer/lab/list/data',
              },
              {
                path: '/buyer/lab/list/record',
                component: './buyer/lab/list/record',
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/buyer/lab',
            component: './buyer/lab/layout', //指定以下页面的布局
            routes: [
              {
                path: '/buyer/lab',
                component: './buyer/lab/inventory',
              },
              {
                path: '/buyer/lab/inventory', //采购主体库存管理
                routes: [
                  {
                    path: '/buyer/lab/inventory',
                    component: './buyer/lab/inventory',
                  },
                  {
                    path: '/buyer/lab/inventory/init/',
                    component: './buyer/lab/inventory/init/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/init/data',
                        component: './buyer/lab/inventory/init/data',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/catalogue/',
                    component: './buyer/lab/inventory/catalogue/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/catalogue/data',
                        component: './buyer/lab/inventory/catalogue/data',
                      },
                      {
                        path: '/buyer/lab/inventory/catalogue/record',
                        component: './buyer/lab/inventory/catalogue/record',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/goods/',
                    component: './buyer/lab/inventory/goods/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/goods/data',
                        component: './buyer/lab/inventory/goods/data',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/out/',
                    component: './buyer/lab/inventory/out/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/out/apply',
                        component: './buyer/lab/inventory/out/apply',
                      },
                      {
                        path: '/buyer/lab/inventory/out/applyRecord',
                        component: './buyer/lab/inventory/out/applyRecord',
                      },
                      {
                        path: '/buyer/lab/inventory/out/record',
                        component: './buyer/lab/inventory/out/record',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/back/',
                    component: './buyer/lab/inventory/back/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/back/data',
                        component: './buyer/lab/inventory/back/data',
                      },
                      {
                        path: '/buyer/lab/inventory/back/wait',
                        component: './buyer/lab/inventory/back/wait',
                      },
                      {
                        path: '/buyer/lab/inventory/back/record',
                        component: './buyer/lab/inventory/back/record',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/noplatform',
                    component: './buyer/lab/inventory/noplatform/layout',
                    routes: [
                      {
                        path: '/buyer/lab/inventory/noplatform/apply',
                        component: './buyer/lab/inventory/noplatform/apply',
                      },
                      {
                        path: '/buyer/lab/inventory/noplatform/record',
                        component: './buyer/lab/inventory/noplatform/record',
                      },
                      {
                        component: './404',
                      },
                    ],
                  },
                  {
                    path: '/buyer/lab/inventory/scrap/',
                    component: './buyer/lab/inventory/scrap/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/lab/inventory/scrap/apply',
                        component: './buyer/lab/inventory/scrap/apply',
                      },
                      {
                        path: '/buyer/lab/inventory/scrap/record',
                        component: './buyer/lab/inventory/scrap/record',
                      },
                    ],
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/lab/order',
                component: './buyer/lab/order/layout',
                routes: [
                  {
                    path: '/buyer/lab/order/data',
                    component: './buyer/lab/order/data',
                  },
                  {
                    path: '/buyer/lab/order/done',
                    component: './buyer/lab/order/done',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/lab/user',
                component: './buyer/lab/user/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/lab/user/manage',
                    component: './buyer/lab/user/manage',
                  },
                  {
                    path: '/buyer/lab/user/record',
                    component: './buyer/lab/user/record',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/lab/addr/',
                component: './buyer/lab/addr/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/lab/addr/data',
                    component: './buyer/lab/addr/data',
                  },
                ],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/buyer/person',
            // component: './buyer/person/layout', //指定以下页面的布局
            routes: [
              {
                path: '/buyer/person/deal',
                component: './buyer/person/flow/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/person/deal/need',
                    component: './buyer/person/flow/need',
                  },
                  {
                    path: '/buyer/person/deal/need/dealFlow',
                    component: './buyer/person/flow/need/dealFlow',
                  },
                  {
                    path: '/buyer/person/deal/done',
                    component: './buyer/person/flow/done',
                  },
                  {
                    path: '/buyer/person/deal/done/viewFlow',
                    component: './buyer/person/flow/done/viewFlow',
                  },
                  {
                    path: '/buyer/person/deal/apply',
                    component: './buyer/person/flow/apply/data',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                path: '/buyer/person/msg',
                component: './buyer/person/msg/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/person/msg',
                    component: './buyer/person/msg/unread',
                  },
                  {
                    path: '/buyer/person/msg/unread',
                    component: './buyer/person/msg/unread',
                  },
                  {
                    path: '/buyer/person/msg/read',
                    component: './buyer/person/msg/read',
                  },
                ],
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/buyer/fund',
            routes: [
              {
                path: '/buyer/fund/list/',
                component: './buyer/fund/list/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/fund/list/data',
                    component: './buyer/fund/list/data',
                  },
                  {
                    path: '/buyer/fund/list/record',
                    component: './buyer/fund/list/record',
                  },
                ],
              },
              {
                path: '/buyer/fund',
                component: './buyer/fund/layout', //指定以下页面的布局
                routes: [
                  {
                    path: '/buyer/fund/data',
                    component: './buyer/fund/data/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/fund/data',
                        component: './buyer/fund/data',
                      },
                    ],
                  },
                  {
                    path: '/buyer/fund/recharge',
                    component: './buyer/fund/recharge/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/fund/recharge',
                        component: './buyer/fund/recharge',
                      },
                    ],
                  },
                  {
                    path: '/buyer/fund/use/record',
                    component: './buyer/fund/use/record/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/fund/use/record',
                        component: './buyer/fund/use/record',
                      },
                    ],
                  },
                  {
                    path: '/buyer/fund/use/my',
                    component: './buyer/fund/use/my/layout', //指定以下页面的布局
                    routes: [
                      {
                        path: '/buyer/fund/use/my',
                        component: './buyer/fund/use/my',
                      },
                    ],
                  },
                ],
              },
              {
                path: '/buyer/fund/manage',
                component: './buyer/fund/manage',
              },
              {
                path: '/buyer/fund/applyRecord',
                component: './buyer/fund/applyRecord',
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    component: './Welcome',
  },
  {
    path: '/login',
    component: './login',
  },
  {
    path: '/register',
    component: './register',
  },
  {
    component: './404',
  },
];
